import { messages } from "share/common";

//维护新的 注意 TabList的Key 和 videoList 的 key 对应
const Wrap = "\n";

const columnsSettingHelp = {
  modalTitle: messages("common-1.key101") /*实用小技巧*/,
  modalSubTitle: messages("common-1.key102") /*点击键盘“↑↓”切换小技巧介绍*/,
  tipsList: {
    videoList: {
      "set-attr": {
        url: "http://huilianyi-misc.oss-accelerate.aliyuncs.com/video/set-attr.mp4",
        title: messages("common-1.key95") /*调整表格宽度及排序*/,
        desc: messages("common-1.key96") /*拖拉表格边缘调整宽度，拖拉表格字段调整顺序*/,
      },
      "set-key": {
        url: "http://huilianyi-misc.oss-accelerate.aliyuncs.com/video/set-key.mp4",
        title: messages("common-1.key97") /*设置表格显示字段*/,
        desc: messages("common-1.key98") /*勾选需要查看的字段*/,
      },
    },
    TabList: [
      {
        tab: messages("common-1.key95") /*调整表格宽度及排序*/,
        key: "set-attr",
      },
      {
        tab: messages("common-1.key97") /*设置表格显示字段*/,
        key: "set-key",
      },
    ],
  },
  defaultActiveKey: "set-attr", //默认Tab
};

const reportListHelp = {
  defaultActiveKey: "graphic",
  modalTitle: messages("common-1.key1341") /*报表演示*/,
  modalSubTitle: messages("common-1.key102") /*点击键盘“↑↓”切换小技巧介绍*/,
  tipsList: {
    videoList: {
      graphic: {
        url: "https://misc.huilianyi.com/heliosweb/video/report-graphic.mp4",
        title: messages("common-1.key1342") /*图表样式*/,
        desc: messages("common-1.key1394", {
          arg1: Wrap,
        }) /*报表清单中的系统报表分为普通报表和图表，普通报表是纯表格；{arg1}图表含横向柱状图、柱状图、饼状图分析等等*/,
      },
      quickMenu: {
        url: "https://misc.huilianyi.com/heliosweb/video/report-quick-menu.mp4",
        title: messages("common-1.key1344") /*快捷访问*/,
        desc: messages("common-1.key1345") /*支持创建/移除报表快捷访问到菜单栏中*/,
      },
      link: {
        url: "https://misc.huilianyi.com/heliosweb/video/report-link.mp4",
        title: messages("common-1.key1346") /*数据联动*/,
        desc: messages("common-1.key1347") /*支持点击某一条数据，其他分析图联动，仅展示这条数据关联的信息*/,
      },
      compare: {
        url: "https://misc.huilianyi.com/heliosweb/video/report-compare.mp4",
        title: messages("common-1.key1348") /*同比环比*/,
        desc: messages("common-1.key1349") /*支持展示数据同比和环比，支持配置*/,
      },
      dataExport: {
        url: "https://misc.huilianyi.com/heliosweb/video/report-data-export.mp4",
        title: messages("common-1.key1350") /*数据导出*/,
        desc: messages("common-1.key1351") /*导出方式多样，支持直接导出、发送邮件等等*/,
      },
      search: {
        url: "https://misc.huilianyi.com/heliosweb/video/report-search.mp4",
        title: messages("common-1.key1352") /*搜索条件/字段设置*/,
        desc: messages("common-1.key1353") /*报表搜索条件丰富，支持多种获取数据的场景；表格字段支持个性化设置*/,
      },
      customReport: {
        url: "https://misc.huilianyi.com/heliosweb/video/report-custom-report.mp4",
        title: messages("common-1.key1354") /*自定义报表*/,
        desc: messages("common-1.key1395", {
          arg1: Wrap,
          arg2: Wrap,
        }) /*自定义报表支持个性化配置：{arg1}图表样式最丰富：指标图、横向柱状图、柱状图、面积图、雷达图、折线图、饼状图、透视表、表格{arg2}支持外部数据：可以导入项目收入等外部数据，和系统内的费用等业务数据关联分析*/,
      },
      customExport: {
        url: "https://misc.huilianyi.com/heliosweb/video/custom-export.mp4",
        title: messages("common-1.key1308") /*导出设置*/,
        desc: messages("common-1.key1454") /*报表导出支持配置关联字段*/,
      },
    },
    TabList: [
      {
        tab: messages("common-1.key1342") /*图表样式*/,
        key: "graphic",
      },
      {
        tab: messages("common-1.key1344") /*快捷访问*/,
        key: "quickMenu",
      },
      {
        tab: messages("common-1.key1346") /*数据联动*/,
        key: "link",
      },
      {
        tab: messages("common-1.key1348") /*同比环比*/,
        key: "compare",
      },
      {
        tab: messages("common-1.key1350") /*数据导出*/,
        key: "dataExport",
      },
      {
        tab: messages("common-1.key1352") /*搜索条件/字段设置*/,
        key: "search",
      },
      {
        tab: messages("common-1.key1354") /*自定义报表*/,
        key: "customReport",
      },
      {
        tab: messages("common-1.key1308") /*导出设置*/,
        key: "customExport",
      },
    ],
  },
};

const workflowHelp = {
  defaultActiveKey: "nodeIntroduction",
  modalTitle: messages("common-1.key1455") /*操作演示*/,
  modalSubTitle: messages("common-1.key102") /*点击键盘“↑↓”切换小技巧介绍*/,
  tipsList: {
    videoList: {
      nodeIntroduction: {
        url: "https://misc.huilianyi.com/heliosweb/video/workflow-node-ntroduction.mp4",
        title: messages("common-1.key1456") /*审批流节点介绍*/,
        desc: messages("common-1.key1457", {
          arg1: Wrap,
          arg2: Wrap,
          arg3: Wrap,
          arg4: Wrap,
          arg5: Wrap,
          arg6: Wrap,
        }) /*1. 审批节点：定义审批环节中的审批人员以及对应的审批设置。{arg1}2. 审核节点：定义审核环节中的审核人员以及对应的审核设置。{arg2}3. 知会节点：配置当审批流程流经此环节后，自动通知相关人员。{arg3}4. 打印节点：配置单据流经此环节后可以开始打印。{arg4}5. 机器人节点：当单据的某些属性满足条件时，自动审批或者驳回单据。{arg5}6. 信用付款节点：满足审批条件，则系统自动推送付款数据，产生信用付款。{arg6}7. 智能审核节点：可以设置抽检比例。*/,
      },
      nodeSetting: {
        url: "https://misc.huilianyi.com/heliosweb/video/workflow-node-setting.mp4",
        title: messages("common-1.key1458") /*审批节点配置*/,
        desc: messages("common-1.key1459", {
          arg1: Wrap,
          arg2: Wrap,
        }) /*审批节点支持基础设置和选择审批人：{arg1}1. 基础设置支持会签规则、节点为空、包含申请人等节点属性。{arg2}2. 选择审批人支持普通审批、连续多级审批人、外部接口获取审批人和矩阵审批。*/,
      },
      conditionSetting: {
        url: "https://misc.huilianyi.com/heliosweb/video/workflow-condition-setting.mp4",
        title: messages("common-1.key1460") /*审批条件配置*/,
        desc: messages("common-1.key1461") /*审批条件作为节点之前流转判断的依据，按照优先级依次判断是否命中。*/,
      },
      nodeCopy: {
        url: "https://misc.huilianyi.com/heliosweb/video/workflow-node-copy.mp4",
        title: messages("common-1.key1462") /*审批流相关复制*/,
        desc: messages("common-1.key1463", {
          arg1: Wrap,
        }) /*1. 支持审批流节点和审批条件的复制。{arg1}2. 支持同租户内表单的审批流复制，复制到新的表单时若条件属性无法满足，则系统给出提示。*/,
      },
      example: {
        url: "https://misc.huilianyi.com/heliosweb/video/workflow-example.mp4",
        title: messages("common-1.key1464") /*配置示例*/,
        desc: messages("common-1.key1465") /*以一个简单的配置流程为例。*/,
      },
    },
    TabList: [
      {
        tab: messages("common-1.key1456") /*审批流节点介绍*/,
        key: "nodeIntroduction",
      },
      {
        tab: messages("common-1.key1458") /*审批节点配置*/,
        key: "nodeSetting",
      },
      {
        tab: messages("common-1.key1460") /*审批条件配置*/,
        key: "conditionSetting",
      },
      {
        tab: messages("common-1.key1462") /*审批流相关复制*/,
        key: "nodeCopy",
      },
      {
        tab: messages("common-1.key1464") /*配置示例*/,
        key: "example",
      },
    ],
  },
};

export { columnsSettingHelp, reportListHelp, workflowHelp };
